#!/bin/bash

package=$1
# if you dont have $package then exit 27


domen='notabug.org'

# I using: badbro badbro-test
account='badbro-test'

# recomended: core extra community packages
repo='sis'

# populars: master main
branch=master


git add $package"_"`package -v`.tar
git commit $package
git push $package


wget https://$domen/$account/$repo/raw/$branch/$package  ; result=$?
 # 2>/dev/null

if [[ 0 == $result ]] ; then
  echo "$package was installed" >/dev/stderr
else
  echo "$package don't was installed" >/dev/stderr
fi

exit $result




commands in bb-pacman as events:
download - get package from repo for folder .packages, and then install
remove - clear, then delete package from folder .packages
update - delete package and then install first new version
install - Extract from package in folder a .cache, and then compile  in bin folder and copy all to must folders - need for first use source but not bin
clear - clear folders .cache (for package(s))
extract
compile

start


